#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;


int minCostToMoveChips(vector<int>& chips) 
{
	int ou=0;
	int ji=0;
	for (int i = 0; i < chips.size(); ++i) {
		if (chips[i]%2 == 0) {
			++ou;
		}else{
			++ji;
		}
	}
	return std::min(ou,ji);
}

int main(int argc, char *argv[])
{
	vector<int> a={1,2,3};
	cout<<minCostToMoveChips(a)<<endl;
	return 0;
}
